package com.hy.mydesktop.client.component.meta;

import java.util.List;
import java.util.Map;

import com.extjs.gxt.ui.client.widget.Layout;
import com.extjs.gxt.ui.client.widget.form.FormPanel.Method;
import com.google.gwt.user.client.ui.AbstractImagePrototype;
import com.hy.mydesktop.shared.persistence.domain.gxt.GxtComponentMetaNodeModel;
/**
 * 
 * <ul>
 * <li>开发作者：冬超</li>
 * <li>设计日期：2010-8-29；时间：下午03:56:58</li>
 * <li>类型名称：FormpanelModel</li>
 * <li>设计目的：</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
public class FormPanelModel {
	/**
	 * 高度
	 */
	private int hight;
	/**
	 * 宽度
	 */
	 private int width;
	/**
	 * 标题隐藏
	 */
	private boolean headerVisible;
	/**
	 * 收缩
	 */
	private boolean collapsible;
	/**
	 *提交地址ַ
	 */
	private String action;
	/**
	 *提交方式
	 */
	private Method method;
	/**
	 *布局
	 */
	private Layout layout;
	/**
	 *按钮放置方式
	 */
	private String ButtonAlign;
	/**
	 * 画面
	 */
	private boolean frame;
	/**
	 *标题
	 */
	private String heading;
	/**
	 * 图片
	 */
	private AbstractImagePrototype icon;
	/**
	 * 自动调整的宽度
	 */
	private boolean autoWidth;
	
	/**
	 * 自动调整的高度
	 */
	private boolean autoHeight;
	/**
	 * 添加按钮
	 */
	private List<GxtComponentMetaNodeModel> addButton;

	
	public AbstractImagePrototype getIcon() {
		return icon;
	}
	public void setIcon(AbstractImagePrototype icon) {
		this.icon = icon;
	}
	public String getHeading() {
		return heading;
	}
	public void setHeading(String heading) {
		this.heading = heading;
	}
	public String getAction() {
		return action;
	}
	public String getButtonAlign() {
		return ButtonAlign;
	}
	
	
	public Method getMethod() {
		return method;
	}
	
	public int getWidth() {
		return width;
	}
	public boolean isCollapsible() {
		return collapsible;
	}
	public boolean isFrame() {
		return frame;
	}
	public boolean isHeaderVisible() {
		return headerVisible;
	}
	public void setAction(String action) {
		this.action = action;
	}
	public void setButtonAlign(String buttonAlign) {
		ButtonAlign = buttonAlign;
	}
	public void setCollapsible(boolean collapsible) {
		this.collapsible = collapsible;
	}
	public void setFrame(boolean frame) {
		this.frame = frame;
	}
	public void setHeaderVisible(boolean headerVisible) {
		this.headerVisible = headerVisible;
	}
	
	
	
	public void setMethod(Method method) {
		this.method = method;
	}
	
	public Layout getLayout() {
		return layout;
	}
	public void setLayout(Layout layout) {
		this.layout = layout;
	}
	public void setWidth(int width) {
		this.width = width;
	}
	public int getHight() {
    	return hight;
    }
	public void setHight(int hight) {
    	this.hight = hight;
    }
	public boolean isAutoWidth() {
    	return autoWidth;
    }
	public void setAutoWidth(boolean autoWidth) {
    	this.autoWidth = autoWidth;
    }
	public boolean isAutoHeight() {
    	return autoHeight;
    }
	public void setAutoHeight(boolean autoHeight) {
    	this.autoHeight = autoHeight;
    }
	public List<GxtComponentMetaNodeModel> getAddButton() {
    	return addButton;
    }
	public void setAddButton(List<GxtComponentMetaNodeModel> addButton) {
    	this.addButton = addButton;
    }

	
	
}
